var theA = document.getElementsByClassName("cw");
var theDiv = document.getElementsByClassName("wx");
var theLi = document.getElementsByClassName("x")

for(var o = 0; o < theA.length; o++) {
	var a = false;
	theA[o].ind = o;
	theA[o].onmousedown= function() {
		for(var j = 0; j < theDiv.length; j++) {
			theDiv[this.ind].style.display = "none"
		}
		if(a == false) {
			theDiv[this.ind].style.display = "block"
			a = true
		} else {
			theDiv[this.ind].style.display = "none"
			a = false
		}
		
	}
}

